home *** CD-ROM | disk | FTP | other *** search
- property chapter, n
-
- on beginSprite me
- n = member(1, "external files").line.count
- n = n / 2
- chapter = []
- repeat with i = 1 to n
- if the machineType = 256 then
- chapter[i] = preloadNetThing(the moviePath & "chapter\cp" & i & ".txt")
- next repeat
- end if
- chapter[i] = preloadNetThing(the moviePath & "chapter:cp" & i & ".txt")
- end repeat
- end
-
- on exitFrame me
- allloaded = 1
- repeat with i = 1 to n
- if netDone(chapter[i]) = 0 then
- allloaded = 0
- end if
- end repeat
- if allloaded then
- repeat with i = 1 to n
- if the machineType = 256 then
- importFileInto(member(i, "chapter"), the moviePath & "chapter\cp" & i & ".txt")
- next repeat
- end if
- importFileInto(member(i, "chapter"), the moviePath & "chapter:cp" & i & ".txt")
- end repeat
- preparemainmenu()
- go(12)
- else
- go(the frame)
- end if
- end
-